package com.gtw.modules.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.gtw.modules.entity.TbAddress;
import com.gtw.modules.entity.TbAnnouncement;

import java.util.List;
import java.util.Map;

import com.gtw.modules.entity.TbBanner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 公告
 *
 * @author wuye
 */
@Mapper
@Repository
public interface TbAnnouncementDao extends BaseDao<TbAnnouncement> {

    int deleteByPrimaryKey(Integer id);

    int insert(TbAnnouncement record);

    int insertSelective(TbAnnouncement record);

    TbAnnouncement selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbAnnouncement record);

    int updateByPrimaryKey(TbAnnouncement record);

    List<TbAnnouncement> queryPageList(Page<TbAnnouncement> pageUtil, Map<String, Object> map);

    /**
     * 查询所有
     * @return
     */
    List<TbAnnouncement> findALL();
}